Packet communication method and apparatus and a recording medium storing a packet communication program

ABSTRACT

A packet communication method and a packet communication system capable of making an IPv4-compatible application operating on an information processing apparatus communicate with another information processing apparatus connected to an IPv6 network without using an address translation router. In the information processing apparatus connected to the IPv6 network incorporates, an IPv4-to-IPv6 protocol conversion control function is incorporated in a LAN driver. A protocol conversion control module receives an IPv4 packet from a protocol control module. When a send destination IPv4 address contained in a header of the packet is registered in an address translation table incorporated in the protocol conversion control module, an IPv6 address is generated to be sent onto a LAN. Unless the send destination IPv4 address contained in the packet header is registered in the address translation table incorporated in the protocol conversion control module, the IPv4 packet as received is intactly sent onto the LAN.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a method of operating IPv4-network-compatible applications on an IPv6 network, a packet generation method, an IP-network-dedicated translator and an NAT (Network Address Translator) as well as a recording medium having a packet generation program recorded thereon.

[0003] 2. Description of Related Art

[0004] Among the protocols for the network layers employed in the TCP (Transmission Control Protocol)/IP (Internet Protocol) communications, the one most familiar in the present state of the art is the IP. At present, the IP of version 4 (hereinafter referred to as the IPv4) is prevailing. Although the IP is currently winning popularity more and more at a high rate in various communication service fields, keeping step with spreading of the internet, the IP nevertheless confronts a serious problem in respect to the exhaustion of IP address.

[0005] As measures for solving the above problem, there are proposed currently such a provisional solution that private address space of the IPv4 is locally provided for local LANs (Local Area Networks) as well as an IP of version 6 (hereinafter referred to as the IPv6). In the present state of the art, a large scale LAN is being realized in which there coexist mixedly the LANs conforming to the IPv6 and the LANs conforming to the IPv4, respectively. As a document concerning the standards for the interconnection of the IPv6-based LAN and the IPv4-based LAN, there can be mentioned “RFC1933”. According to the RFC1933 (Transition Mechanism for IPv6 and Routers; R. Gilligan, 1996, April, IETF), interconnection of the IPv6 network is rendered possible by mapping the IPv4 address to the IPv6 address.

SUMMARY OF THE INVENTION

[0006] As mentioned above, although the IPv6 network is on the way of being developed, the number of the APs (Application Programs) conforming to or compatible with the IPv6 is very small as compared with the IPv4-compatible APs. It is further noted that there has not yet been available such means which allows the IPv4-compatible application operating on a PC (Personal Computer)/WS (Work Station) and the IPv6-compatible application on a PC/WS to communicate directly with each other without resorting to the aid of a network having an NAT function such as the address translation router or the like. In the case where the address translation router is employed, protocol conversion is performed in addition to the routing processing known heretofore. Thus, a heavy load is imposed on the address translation router. By the way, the IPv4 packet dedicated to the hardware address resolution undergoes no conversion. In order that an existing IPv4-compatible AP can perform communication without consciousness of the IP address of a connection-destined host, a logical-name-based address resolution relying on a DNS (Domain Name System) is indispensably required.

[0007] With the present invention, it is contemplated as an object thereof to make it possible that an IPv4-compatible APs operating on a PC/WS can communicate directly with an IPv6-compatible application on a host such as a PC/WS or the like without need for intervention of network equipment such as the address translation router or the like imparted with the NAT function.

[0008] Another object of the present invention is to provide a DNS function conforming to or compatible with the IPv6 (IPv6 address inquiry function) in order to make it possible for an IPv4-compatible AP to perform communication without consciousness of the address of a communication counterpart.

[0009] Yet another object of the present invention is to make it possible that a packet for hardware address resolution conforming to or compatible with the IPv4 as issued by an existing AP can be converted to a hardware-address-resolution-dedicated packet conforming to or compatible with the IPv6 with a view to enabling an IPv4-compatible AP to communicate with an IPv6-compatible AP.

[0010] The information processing apparatus such as PC/WS or the like which is imparted with a LAN control function (hereinafter also referred to as the LAN control apparatus) and to which the present invention can find application includes ordinarily IPv4-compatible APs and an IPv4 protocol control module. Ordinarily, the above-mentioned LAN control function is realized mainly through a program, so-called software, and there is additionally provided hardware destined for performing transmission/reception controls for the communication media.

[0011] For achieving the objects mentioned above, a protocol conversion control module is provided between an IPv4 protocol control module and a LAN control module both for the LAN control function. The protocol conversion control module includes an IPv4-IPv6 switch control module, a buffer conversion module, a header conversion control module, an IPv6 transmission/reception control module and a DNS-NAT cooperation or cooperation control module. The protocol conversion control module converts the IPv4 packet outputted from the IPv4 protocol control module to the IPv6 packet and outputs the latter to the LAN control module. Further, the IPv6 packet outputted from the LAN control module is converted to the IPv4 packet to be subsequently outputted to the IPv4 protocol control module.

[0012] Controls and data flows among the individual control modules are as follows.

[0013] In the case of transmission, data is transferred from an IPv4-compatible AP to the IPv4 protocol control module, while the IPv4 protocol conversion control module transfers the IPv4 packet to the protocol conversion control module. The protocol conversion control module interprets the packet as transferred, to thereby perform processings described below. In the case of an ARP request packet, the protocol conversion control module messages an hardware address as generated to the IPv4 protocol control module. In that case, the actual hardware address resolution is realized by performing address resolution with the IPv6 protocol.

[0014] In the case of inquiry packet of the DNS, the protocol conversion control module inquires both the IPv6 address and the IPv4 address, and when the IPv6 address is returned as a response packet, the IPv4 address which corresponds to the IPv6 address is transmitted to the IPv4 protocol control module.

[0015] In the case of an ordinary packet, the protocol conversion control module checks the IPv4 address of a send destination as contained in the IPv4 header to thereby perform processings mentioned below. When the above address is one registered in an address translation table incorporated in the protocol conversion control module, the protocol conversion control module translates the address of concern to the IPv6 address on the basis of the address translation table to thereby generate an IPv6 header, which is then sent onto the LAN in the form of IPv6 packet. Unless the address of concern is registered in the address translation table incorporated in the protocol conversion control module, the protocol conversion control module sends the IPv4 packet intactly onto the LAN.

[0016] In the case of reception, when an IPv6 packet is received from the LAN control module, the protocol conversion control module checks the IPv6 address of the source sender as contained in the IPv6 header. When the address mentioned above is one registered in the address translation table incorporated in the protocol conversion control module, the protocol conversion control module translates that address to the corresponding IPv4 address to thereby generate an IPv4 header and transfer the IPv4 packet data to the IPv4 protocol control module of higher level.

[0017] In the case where the IPv6 address is not registered in the address translation table incorporated in the protocol conversion control module, the protocol conversion control module discards the received packet. Upon reception of the IPv4 packet from the LAN control module, the protocol conversion control module transfers the data of the other packet than the DNS response packet to the protocol control module. In this manner, it is possible to make the IPv4-compatible AP communicate with the IPv6-compatible AP.

[0018] By adopting the means described above, the objects mentioned previously can be achieved.

[0019] Thus, by providing the protocol conversion control module between the protocol control module and the LAN control module known heretofore so that the protocol conversion control module performs header conversion between the IPv4 header and the IPv6 header for the packets flowing between the protocol control module and the LAN control module, the application program which transfers data to the protocol control module can carry out the communication with other apparatus connected to the IPv6 network in accordance with the IPv6, even when the former is the IPv4-compatible application.

BRIEF DESCRIPTION OF THE DRAWINGS

[0020]FIG. 1 is a configuration diagram of a LAN control apparatus according to a first embodiment of the present invention.

[0021]FIG. 2 shows an exemplary configuration of a communication network system according to an exemplary embodiment of the present invention.

[0022]FIG. 3 illustrates an exemplary structure of an address translation table of a host A according to an exemplary embodiment of the present invention.

[0023]FIG. 4 illustrates a structure of an address translation table of a host B according to an exemplary embodiment of the present invention.

[0024]FIG. 5 is a configuration diagram of a LAN control apparatus according to a second embodiment of the present invention.

[0025]FIG. 6 is a configuration diagram of a LAN control apparatus according to a third embodiment of the present invention.

[0026]FIG. 7 illustrates a packet sequence involved in a MAC address resolution.

[0027]FIG. 8 illustrates a processing flow (DNS packet send processing) in a DNS-NAT cooperation control module.

[0028]FIG. 9 illustrates a processing flow (DNS packet reception processing) in the DNS-NAT cooperation control module.

[0029]FIG. 10 illustrates a packet switch control processing flow in an IPv4-IPv6 switch control module.

[0030]FIG. 11 is a view showing a format of a UDP header packet.

[0031]FIG. 12 is a view showing a format of a DNS header packet.

[0032]FIG. 13 is a view showing a format of a DNS inquiry message.

[0033]FIG. 14 is a view showing a format of a DNS response message.

[0034]FIG. 15 is a view showing a format of an ARP message.

[0035]FIG. 16 is a configuration diagram of an information processing apparatus.

DETAILED DESCRIPTION OF THE EMBODIMENTS

[0036] Exemplary embodiments of the present invention will be described by reference to the drawings.

[0037] At first, description will be made of an exemplary network configuration according to an embodiment of the present invention.

[0038]FIG. 2 is a view showing an exemplary network configuration according to the instant embodiment. As can be seen in the figure, hosts each implemented as an information processing apparatus having a LAN control function (hereinafter also referred to as the LAN control apparatus) are interconnected to constitute networks. An IPv6 network 2011 and an IPv4 network 2018 are interconnected via an IPv4-to-IPv6 translation router 2012. Connected to the IPv4 network 2018 is a DNS (Domain Name System) server 2017 which is in charge of managing domain names of the IPv4 network 2018 and the IPv6 network 2011. Further connected to the IPv4 network 2018 is a host D 2018 which is compatible with or conforms to an existing IPv4 such as a PC or the like.

[0039] Connected to the IPv6 network 2011 are a host A 1001, a host B 2001 and a host C 2007. Each of the host A 1001 and the host B 2001 is realized as the host having an IPv4-to-IPv6 translation function. The host C 2007 serves as the IPv6-dedicated host, and an IPv6-compatible AP is operating on the host C 2007. Incorporated in the hosts A and B, respectively, are IPv4-compatible APs 1004 and 2002, protocol control modules 1005 and 2003, protocol conversion control modules 1006 and 2004 and LAN control modules 1007 and 2006.

[0040] Firstly, description will be directed to the interfaces between or among the individual control modules incorporated in the host A 1001. The interface between the TCP/IPv4-compatible AP 1004 and the interface protocol control module 1005 serves as the interface for transaction of user data.

[0041] Communication between the protocol control module 1005 and the protocol conversion control module 1006 is performed by using IPv4 packets. The IPv4 packet is comprised of an MAC (Media Access control) header field, an IPv4 header field and an IPv4 packet data field. Communication between the protocol conversion control module 1006 and the LAN control module 1007 is realized by using the IPv6 packet and IPv4 packet.

[0042] The IPv6 packet is comprised of an MAC header field, an IPv6 header field and an IPv6 packet data field. The protocol conversion control module 1006 checks the IPv4 header of the IPv4 packet inputted from the protocol control module 1005 to thereby decide whether or not header conversion is to be performed. When the conversion is required, the IPv4 header is converted to an IPv6 header, whereupon the IPv6 packet resulting from the conversion is outputted to the LAN control module.

[0043] Next, description will made of the addresses set at the hosts A to D. In this conjunction, the IPv4 address held by the protocol control module 1005 of the host A 1001 is represented by IPv4-A, the IPv4 address held by the protocol control module 2003 of the host B 2001 is represented by IPv4-B, and the IPv4 address held by the protocol control module 2015 of the host D 2013 is represented by IPv4-D.

[0044] An exemplary structure of an address translation table of the host A 1001 is illustrated in FIG. 3. The IPv6 address IPv6-A corresponds to the IPv4 address IPv4-A of the host A 1001, the private IPv4 address IPv4-B (private) corresponds to the IPv6 address IPv6-B of the host B 2001, and the private IPv4 address IPv4-C (private) corresponds to the IPv6 address IPv6-C of the host C 2007.

[0045] An exemplary structure of an address translation table of the host B is illustrated in FIG. 4. The IPv6 address IPv6-B corresponds to the IPv4 address IPv4-B of the host B 2001, the private IPv4 address IPv4-C (private) corresponds to the IPv6 address IPv6-C of the host C 2007, and the private IPv4 address IPv4-A (private) corresponds to the IPv6 address IPv6-A of the host A 1001.

[0046] The first entry of the address translation table (hereinafter also referred to as the NAT table) which indicates correspondence between the own IPv4 address and the IPv6 address is set upon initialization. The second and subsequent entries are set statically by the user or set dynamically by the DNS-NAT cooperation control module incorporated in the protocol conversion control module.

[0047] Next, communications between the host A 1001 and the host B 2001, between the host A 1001 and the host C 2007, and between the host A 1001 and the host D 2013, respectively, will be explained by reference to FIG. 3 and FIG. 4.

[0048] At first, communication between the host A 1001 and the host B 2001 will be described. The IPv4-compatible AP 1004 of the host A 1001 sends IPv4 packet by using a provisional Ipv4 address Ipv4-B (private) for the host B 2001 via the protocol control module 1005. When the send destination Ipv4 address contained in the Ipv4 header is registered in the address translation table 3001, the corresponding Ipv6 address is read out from the address translation table 3001 to thereby generate the Ipv6 header, whereon the Ipv6 packet is sent onto the LAN 1 (2011) under the control of the LAN control module 1007.

[0049] Upon reception of the Ipv6 packet, the LAN control module 2006 of the host B 2001 transfers the packet to the protocol conversion control module 2004. The protocol conversion control module 2004 checks the send destination Ipv6 address contained in the Ipv6 header. When the send destination Ipv6 address is registered in the address translation table 4001, the corresponding Ipv4 address is read out from the address translation table 4001 to thereby generate an Ipv4 header, whereon the Ipv4 packet is transferred to the protocol control module 2003.

[0050] Next, description will turn to communication between the host A 1001 and the host C 2007. In the host A 1001, the Ipv6 packet is generated for the provisional Ipv4 address of the host C 2007 by referencing the address translation table 3001 as in the case of the communication to the host B 2001, which packet is then received intactly by the host C 2007 to be interpreted by the protocol control module 2009.

[0051] Description will next be made of the communication between the host A 1001 and the host D 2013. The Ipv4-compatible AP 1004 of the host A 1001 sends the Ipv4 packet via the protocol control module 1005 by using the Ipv4 address Ipv4-D for the host D 2013. The protocol conversion control module 1006 checks the send destination Ipv4 address contained in the Ipv4 header. The Ipv4 packet is sent out via the LAN control module 1007 without undergoing the header conversion because the Ipv4-D is not registered in the address translation table 3001. The Ipv4 packet as sent out is received by the router 2012, whereupon the Ipv4 packet as received by the router 2012 is sent out onto the LAN 2 (2018). Thus, the host D 2013 connected to the LAN 2 (2018) receives the Ipv4 packet, whereon the Ipv4-compatible AP 2016 receives the data sent from the Ipv4-compatible AP 1004 of the host A 1001 by way of the LAN control module 2013 and the protocol control module 2015.

[0052] Now referring to FIG. 1, configuration of the LAN control apparatus of the host A, host B and others will be described. FIG. 1 shows a configuration of the LAN control apparatus 1001 of the host A. The address space of the LAN control apparatus 1001 is comprised of a user space 1002 in which application programs operate and a kernel space 1003 in which the kernel operates. A TCP/Ipv4-compatible AP 1004 is resident in the user space 1002. As the AP, there can be mentioned TCP/Ipv4-compatible programs such as telnet, ftp, HTTP client and others.

[0053] Interfacing between the TCP/Ipv4-compatible AP 1004 resident within the user space 1002 and the protocol control module 1005 resident within the kernel space 1003 is realized by inputting/outputting the data packets generated by the TCP/Ipv4-compatible AP 1004.

[0054] The kernel space 1003 includes individual components such as the protocol control module 1005, the protocol conversion control module 1006 and the LAN control module 1007.

[0055] Interfacing between the protocol control module 1005 and the protocol conversion control module 1006 is realized by the interface through which the Ipv4 packets are inputted/outputted. The Ipv4 packet is a packet constituted by adding an Ipv4 header and an MAC (Media Access Control) header to a data packet. Interfacing between the protocol conversion control module 1006 and the LAN control module 1007 is realized by an interface through which the Ipv4 packets or the Ipv6 packets are inputted/outputted. The Ipv6 packet is a packet constituted by an Ipv6 header and the MAC header added to a data packet.

[0056] The protocol control module 1005 includes a TCP transmission/reception control module 1008 and an Ipv4 transmission/reception control module 1009.

[0057] The protocol conversion control module 1006 includes an Ipv4-Ipv6 switch control module 1010, a buffer conversion control module 1011, a DNS-NAT cooperation control module 1012, a header conversion control module 1013, an Ipv6 transmission/reception control module 1014, an address translation table 1015 and an inquiry packet queue 1016.

[0058] Next, description will be directed to individual control modules incorporated in the protocol conversion control module 1006.

[0059] Firstly, description will be directed to the input/output interface between the individual control modules. All the communications performed between the individual control modules incorporated in the protocol conversion control module 1006 are realized by inputting/outputting Ipv4 packets or Ipv6 packets.

[0060] The Ipv4-Ipv6 switch control module 1010 has a packet switching function for the Ipv4 packet transferred from the protocol control module 1005 and the received packet transferred from the LAN control module 1007 (Ipv4 packet or Ipv6 packet), and a hardware address dummy response processing function for the protocol control module 1005. Contents of this processing will be described in detail hereinafter.

[0061] The buffer conversion control module 1011 controls conversion of a buffer handled by the protocol control module 1005 and a buffer handled by the protocol conversion control module 1006. The Ipv6 transmission/reception control module 1014 performs Ipv6 protocol processing.

[0062] The header conversion control module 1013 performs conversion between the Ipv4 header and the Ipv6 header by referencing the address translation table 1015. The DNS-NAT cooperation control module 1012 copies the DNS address inquiry packet received from the protocol control module 1005, to thereby inquire of both the Ipv4 address and the Ipv6 address. Further, the DNS-NAT cooperation control module 1012 reserves the address of the Ipv4 (ordinarily private address) and allocates the reserved Ipv4 address to the Ipv6 address of the connection-destined host (provisional Ipv4 address) to register it in the address translation control table 1015 incorporated in the header conversion control module 1013. The provisional Ipv4 address registered in the DNS-NAT cooperation control module 1012 is transmitted to the protocol control module 1005 to thereby allow the TCP/Ipv4-compatible AP 1004 to be connected to the Ipv6 network by using the provisional Ipv4 address, starting from the most significant one.

[0063] An inquiry packet queue 1016 is resident internally of the DNS-NAT cooperation control module 1012. The inquiry packet queue is a table which registers therein in combination the DNS inquiry packet information outputted from the protocol conversion control module 1005 and the information concerning the processing for the inquiry packet mentioned above (i.e., flag indicating whether DNS response packet processing has been done in response to the DNS inquiry packet). By using this inquiry packet queue, the address inquiry packet is queued for performing the reception control of the response packet for the address inquiry packet. Concerning the contents of the processing performed by the DNS-NAT cooperation control module 1012, description will be made in detail hereinafter.

[0064] The hardware address dummy processing function of the Ipv4-Ipv6 switch control module 1010 will be elucidated by reference to FIG. 7.

[0065]FIG. 7 is a view illustrating a packet sequence involved in the MAC address resolution between the protocol control module 1005 and the Ipv4-Ipv6 switch control module 1010 incorporated in the LAN control apparatus 1001 and the connection-destined host 2001.

[0066] Between the protocol control module 1005 and the Ipv4-Ipv6 switch control module 1010, the Ipv4 packets are inputted/outputted, while between the Ipv4-Ipv6 switch control module 1010 and the connection-destined host 2001, Ipv6 packets are transferred as input/output by way of the LAN.

[0067] At first, for the purpose of the hardware address resolution for the connection-destined host 2001, the protocol control module 1005 outputs the ARP request packet to the Ipv4-Ipv6 switch control module 1010.

[0068] The Ipv4-Ipv6 switch control module 1010 then generates an ARP response message which is then outputted to the protocol control module 1005. For the send source hardware address contained in the ARP response message, the Ipv4-Ipv6 switch control module 1010 generates and sets a given address. The protocol control module 1005 generates an MAC header by using this hardware address, wherein the Ipv4 packet is outputted to the Ipv4-Ipv6 switch control module 1010. The Ipv4-Ipv6 switch control module 1010 converts the Ipv4 packet to the Ipv6 packet through the medium of the header conversion control module 1013. In that case, hardware address information of the connection-destined host 2001 is required for generating the MAC header. To this end, the data inputted from the protocol control module 1005 and converted to the Ipv6 packet is temporarily held in the Ipv4-Ipv6 switch control module 1010, and an NS (Neighbor Solicitation) package is generated for inquiring about the hardware address of the connection-destined host 2001.

[0069] The Ipv4-Ipv6 switch control module 1010 outputs this NS packet (Ipv6 packet) to the connection-destined host 2001 via the LAN. Upon reception of the NS packet, the connection-destined host 2001 generates an NA (Neighbor Advertisement) packet for messaging the own hardware address, the NA packet as generated being then outputted to the Ipv4-Ipv6 switch control module 1010 of the LAN control apparatus 1001 via the LAN. Upon reception of the NA packet, the Ipv4-Ipv6 switch control module 1010 generates the MAC header on the basis of the hardware address information concerning the connection-destined host 2001 as contained in the NA packet, to thereby generate the Ipv6 packet which is then outputted to the connection-destined host 2001 via the LAN together with the Ipv6 packet data being held.

[0070] A format of the ARP message data is shown in FIG. 15. A hardware type field of the ARP message indicates the type of LAN. In the case of the Ethernet, “1” is entered. A protocol type field indicates the type of protocol, and “0x0800” indicates the IP. An HLEN field indicates the length of a physical hardware address, and a PLEN field indicates the length of the protocol address. An operation field indicates the type of the ARP packet such as of the ARP request, the ARP response and the like.

[0071] Next, referring to FIG. 10, the packet switch control function of the Ipv4-Ipv6 switch control module 1010 will be explained. FIG. 10 shows a packet switch control processing flow of the Ipv4-Ipv6 switch control module 1010.

[0072] The Ipv4-Ipv6 switch control module 1010 makes the header conversion processing decision and the DNS packet decision for the Ipv4 packet inputted from the protocol control module 1005. Further, the Ipv4-Ipv6 switch control module 1010 performs the header conversion processing decision for the Ipv4 packet inputted from the LAN control module 1007.

[0073] Descriptions will first be directed to the processing for the packet inputted from the protocol control module 1005. Upon reception of the Ipv4 packet from the protocol control module 1005, the Ipv4-Ipv6 switch control module 1010 first decides whether or not the Ipv4 packet is a DNS packet (10001). In the case of the DNS packet, the Ipv4-Ipv6 switch control module 1010 interprets the messaged contents of the DNS header to thereby switch the control module to be called in dependence on the contents of the message (10002).

[0074] When the content of the message indicates the DNS packet, the Ipv4-Ipv6 switch control module 1010 outputs the Ipv4 packet to the LAN control module 1007 as it is (10003). When the content of the message now concerned indicates the DNS inquiry packet, the Ipv4-Ipv6 switch control module 1010 outputs the Ipv4 packet to the DNS-NAT cooperation control module 1012 (10004).

[0075] When the Ipv4 packet inputted from the protocol control module 1005 is other than the DNS packet, the address translation table 1015 incorporated in the header conversion control module 1013 is searched for the send destination Ipv4 address contained in the Ipv4 header of the Ipv4 packet inputted (10005). Unless the send destination Ipv4 address contained in the Ipv4 header coincides with the Ipv4 address registered in the address translation table 1015, the Ipv4-Ipv6 switch control module 1010 outputs the Ipv4 packet intactly to the LAN control module (10006). When coincidence is found, the Ipv4-Ipv6 switch control module 1010 outputs the Ipv4 packet to the header conversion control module 1013 by way of the buffer conversion control module 1011 to perform the protocol conversion processing (10007).

[0076] Next, description will be made of the processing in the case where the Ipv4-Ipv6 switch control module 1010 receives as the input the Ipv4 or Ipv6 packet from the LAN control module 1007.

[0077] Upon inputting of the packet from the LAN control module 1007, the Ipv4-Ipv6 switch control module 1010 makes decision whether the packet as inputted is the Ipv4 packet or the Ipv6 packet (10008). In the case where the inputted packet is the Ipv4 packet, the Ipv4-Ipv6 switch control module 1010 then decides whether or not the Ipv4 packet is the DNS response packet (10009). Unless the Ipv4 packet is the DNS response packet, the Ipv4-Ipv6 switch control module 1010 outputs the Ipv4 packet to the protocol control module 1005 (10010). In case the inputted Ipv4 packet is the DNS response packet, the Ipv4-Ipv6 switch control module 1010 outputs the Ipv4 packet to the DNS-NAT cooperation control module (10011). When the packet inputted from the LAN control module 1007 is the Ipv6 packet, the Ipv4-Ipv6 switch control module 1010 outputs the Ipv6 packet to the Ipv6 transmission/reception control module 1014 (10012).

[0078] Referring to FIG. 11 to FIG. 14, description will be made of the format of the DNS packet.

[0079] Ordinarily, for the DNS packet, UDP (User Datagram Protocol) is employed. A format of the UDP header is illustrated in FIG. 11. The UDP header is comprised of a source port number field, a destination port number field, a data length field and a UDP check-sum field. Ordinarily, “53” is used as the port number of the DNS. FIG. 12 shows a format of the DNS header. The DNS header is divided into an ID field, a control field, an inquiry record number field, a response record number field, a registered organ record number field and an additional record number field. In the ID field, a value generated arbitrarily upon generation of the inquiry packet is placed, and the ID contained in the DNS header of the response packet for the inquiry packet has the same value as the above-mentioned value. There are entered in the control field the packet information such as the types of the inquiry/response and the like.

[0080]FIG. 13 shows a format of the DNS inquiry message. A domain name for the inquiry is set in a name field. In a QTYPE field, there is set inquiry type information such as the Ipv4/Ipv6 address or the like.

[0081]FIG. 14 shows a format of the DNS response message. A domain name for the inquiry is set in a name field. In a QTYPE field, there is set inquiry type information such as the Ipv4/Ipv6 address or the like. In the Ipv4 or Ipv6 address field, an address corresponding to the address type designated in the QTYPE field is set.

[0082] Processing flow of the DNS-NAT cooperation control module 1012 will be explained by reference to FIGS. 8 and 9. The processing contents of the DNS-NAT cooperation control module 1012 can be globally classified to a processing for the DNS packet inputted from the protocol control module 1005 (which will be elucidated in conjunction with the DNS packet send processing shown in FIG. 8) and a processing of the DNS packet inputted from the LAN control module 1007 (which will be described in conjunction with the packet reception processing shown in FIG. 9).

[0083] At first, by reference to FIG. 8, description will be made of a processing flow in the case where the DNS-NAT cooperation control module 1012 receives as the input thereto a DNS address inquiry packet (Ipv4 packet) from the Ipv4-Ipv6 switch control module 1010.

[0084] The DNS-NAT cooperation control module 1012 first checks the UDP header of the Ipv4 packet as inputted to thereby decide whether the source port number is “53” and the type set in the DNS header is the DNS inquiry packet (8001). In the case where the type in the DNS header does not indicate the DNS address inquiry packet, the Ipv4 packet is outputted intactly to the LAN control module (8002).

[0085] When the type set at the DNS header indicates the DNS address inquiry packet, the DNS-NAT cooperation control module 1012 then copies the DNS packet (8003) to thereby generate the DNS inquiry packet for the Ipv6 address by using the copied packet (8004). Subsequently, the ID contained in the DNS header is registered in the inquiry packet queue (8005).

[0086] Finally, the DNS-NAT cooperation control module 1012 outputs the DNS inquiry packet of the Ipv6 address to the LAN control module 1007 (8006), while the DNS inquiry packet of the Ipv4 address is outputted to the LAN control module 1007 (8007).

[0087] Next referring to FIG. 9, description will turn to a processing flow in the case where the DNS-NAT cooperation control module 1012 receives as the input a DNS response packet from the LAN control module 1007.

[0088] The DNS-NAT cooperation control module 1012 first compares the ID entered in the DNS header of the received packet with the ID registered in the inquiry packet queue to thereby check whether the ID of the DNS response packet coincides with any one of the identifiers registered in the inquiry packet queue 1016 (9001).

[0089] Unless the coincidence is found between the ID and the identifier, the DNS-NAT cooperation control module 1012 outputs the DNS response packet intactly to the protocol control module 1005 (9002). On the other hand, when the coincidence is found, the DNS-NAT cooperation control module 1012 then checks whether or not the response packet has already been at hand for the relevant packet of the DNS inquiry queue (9003). When the response packet has already been at hand, the relevant record is dequeued from the inquiry queue (9004), and the DNS response packet which is currently undergoing the reception processing is discarded (9005).

[0090] When the response packet has not been processed yet, the DNS-NAT cooperation control module 1012 sets a processing-done flag at the relevant record of the inquiry queue (9006). Then, the processing proceeds to the next step.

[0091] Next, the DNS-NAT cooperation control module 1012 makes decision as to the IP address contained in the response message (9007). When the IP address contained in the response message is the IPv4 address, the DNS packet is intactly transferred to the protocol control module (9008). When the IP address in the response message is the IPv6, a corresponding IPv4 address is read out from the address pool table to be registered in the address translation table (9009). In succession, the DNS response packet is generated by using the assigned IPv4 address (9010), whereon the DNS response packet as generated is outputted to the protocol control module 1005 (9011).

[0092] Next, description will turn to a second embodiment of the present invention.

[0093]FIG. 5 shows a configuration of a LAN control apparatus 5001 according to the second embodiment of the invention. The address space of the LAN control apparatus 5001 is comprised of a user space 1002 in which application programs (AP) operate and a kernel space 1003 for a kernel to operate. A TCP/IPv4-compatible AP 1004 is resident in the user space 1002.

[0094] The kernel space 1003 includes a protocol control module 1005, a protocol conversion control module 5006 and a LAN control module 1007, respectively. The protocol control module 1005 is comprised of a TCP transmission/reception control module 1008 and an IPv4 control module 1009. The protocol control module 1005 transfers the data received from the TCP/IP-compatible AP 1004 to the protocol conversion control module 5006 as the IPv4 packet. The protocol conversion control module 5006 is comprised of an IPv4-IPv6 switch control module 1010, a buffer conversion control module 1011, a DNS-NAT cooperation control module 1012, a header conversion control module 1013, an IPv4 transmission/reception control module 1016 and an IPv6 transmission/reception control module 1014.

[0095] Next, description will be directed to the functions of the individual control modules.

[0096] The IPv4-IPv6 switch control module 1010 has a packet switch control function for the IPv4 packet transferred from the protocol control module 1005 and the received packet (IPv4 packet; IPv6 packet) transferred from the LAN control module 1007. The buffer conversion control module 1011 performs a buffer conversion control for the protocol control module 1005 and the protocol conversion control module 5006.

[0097] The IPv4 transmission/reception control module 5017 performs the IPv4 protocol processing. In other words, the IPv4 transmission/reception control module makes decision as to which one of plural protocols is now of concern and then performs the processing in accordance with the one protocol.

[0098] The IPv6 transmission/reception control module 1014 performs the IPv6 protocol processing. The header conversion control module 1013 performs the conversion between the IPv4 header and the IPv6 header by referencing the address translation table 1015. The DNS-NAT cooperation control module 1012 has reserved the address of the IPv4 (private address ordinarily) and allocates the IPv4 address as reserved to the IPv6 address of the connection-destined host, the allocated address being registered in the address translation control table 1015 incorporated in the header conversion control module 1013.

[0099] Next, description will be made of a third embodiment of the present invention.

[0100]FIG. 6 shows a configuration of a LAN control apparatus 6001 according to the third embodiment. This LAN control apparatus 6001 is so implemented as to be employed generally in the PC or the like and includes a kernel 6004, a TCP/IPv4-compatible AP 6002, a socket emulator 6003, a transport driver (TCP/IP) 6005, an inter-kernelnetwork interface control module (NDIS wrapper) 6006, a network interface control module (NDIS control module) 6007 and an NIC (Network Interface Card) control module 6015.

[0101] According to the instant embodiment, there are provided between the network interface control module 6007 and the NIC control module 6015 an IPv4-IPv6 switch control module 6008, a buffer conversion control module 6009, an address translation control module 6011, an IPv4 transmission/reception control module 6012, an IPv6 transmission/reception control module 6013 and a DNS-NAT cooperation control module 6010 in order to realize the IPv4-to-IPv6 header conversion function for thereby enabling the IPv4-compatible application to perform communication via the IPv6 network.

[0102] The IPv4-IPv6 switch control module 6008 performs a packet switch control for each of the IPv4 packet transferred from the network interface control module 6007 and the received packet (IPv4 packet or IPv6 packet) from the NIC control module 6015. The buffer conversion control module 6009 performs buffer conversion control between the buffer which is managed by the kernel 6004 and the buffer handled by the IPv4 transmission/reception control module 6012, the IPv6 transmission/reception control module 6013, the address translation control module 6011 and the DNS-NAT cooperation control module 6010.

[0103] The IPv4 transmission/reception control module 6012 performs IPv4 protocol processing. The IPv6 transmission/reception control module 6013 performs IPv6 protocol processing. The address translation control module 6014 performs the conversion of the IPv4 header and the IPv6 header by referencing the address translation table 6014. The DNS-NAT cooperation control module 6010 has reserved the address of the IPv4 (private address ordinarily) and allocates the IPv4 address as reserved to the IPv6 address of the connection-destined host, the allocated address being registered in the address translation control table 6014 incorporated in the address translation control module 6011.

[0104] In each of the embodiments described above, the protocol conversion control module is available as a program having additional functions, e.g. for the packet communication function of information processing apparatus in the form of a recording medium such as a floppy disk, a CD-ROM or the like or through delivery by way of a network or the like and can be installed in the information processing apparatus. 

1. A packet communication method in a network system comprising a first network corresponding to a first communication protocol, a second network corresponding to a second communication protocol and a plurality of packet communication apparatuses connected to at least one of said first network and said second network, wherein in a first information processing apparatus which is connected to said second network and in which an application program compatible with said first communication protocol can operate, correspondence between network addresses of a first type compatible with said first communication protocol and network addresses of a second type compatible with said second communication protocol are stored for said plurality of packet communication apparatuses, respectively, and wherein upon packet communication between said application program and said second network in said first packet communication apparatus, address translation between said first type network address and said second type network address is performed for a send destination address contained in the packet on the basis of the correspondence of said network addresses, to thereby perform header conversion between said first communication protocol and said second communication protocol for said packet.
 2. A packet communication method according to claim 1, wherein when said application program sends a packet corresponding to said first communication protocol to said second network in said first packet communication apparatus, a send destination address contained in said packet for sending is converted from said first type network address to said second type network address on the basis of the correspondence of said network addresses, to thereby convert a header of said packet for sending from a header of said first communication protocol to a header of said second communication protocol.
 3. A packet communication method according to claim 1, wherein when said application program receives a packet corresponding to said second communication protocol from said second network in said first packet communication apparatus, a send destination address contained in said received packet is converted from said second type network address to said first type network address on the basis of the correspondence of said network addresses, to thereby convert a header of said received packet from a header of said second communication protocol to a header of said first second communication protocol.
 4. A packet communication method according to claim 1, wherein said first communication protocol is an IPv4 and said second communication protocol is an IPv6.
 5. A packet communication method according to claim 4, wherein when said application program sends an IPv4 packet to said network, said first packet communication apparatus translates a send destination address contained in said IPv4 packet to an IPv6 address from the IPv4 address on the basis of said network address correspondence, to thereby convert a header of said IPv4 packet to said IPv4 header.
 6. A packet communication method according to claim 5, wherein IPv4 addresses for said plurality of packet communication apparatuses are reserved in said first packet communication apparatus, wherein one of said reserved IPv4 addresses is allocated to a second packet communication apparatus of said plurality of packet communication apparatuses, and correspondence between the IPv6 address of said second packet communication apparatus and said allocated IPv4 address is stored as the correspondence of said network addresses, and wherein when said application program sends the IPv4 packet to said second packet communication apparatus by way of said second network, said first packet communication apparatus sets said IPv4 address allocated as said send destination address to said IPv4.
 7. A packet communication method according to claim 5, wherein when the send destination address contained in said IPv4 packet is not included in said network address correspondence, said first packet communication apparatus sends said IPv4 packet intactly to said network.
 8. A packet communication method according to claim 4, wherein when said application program receives an IPv6 packet from said second network, said first packet communication apparatus translates a send destination address contained in said IPv6 packet to an Ipv4 address from the IPv6 address on the basis of said network address correspondence, to thereby convert a header of said IPv6 packet to a header of the IPv4 header.
 9. A packet communication method in a network system comprising a first network corresponding to a first communication protocol, a second network corresponding to a second communication protocol, and a plurality of packet communication apparatuses connected to at least one of said first network and said second network, wherein when a first packet communication apparatus among said plurality of packet communication apparatuses sends a packet, decision is made as to which of said first network and said second network a second packet communication apparatus which is a send destination of said packet is connected to, and a packet of a relevant communication protocol is generated from the first mentioned packet on the basis of the result of said decision, said generated packet being sent out to the network to which said first packet communication apparatus is connected.
 10. A packet communication method according to claim 9, wherein said first packet communication apparatus inquires an address management module which holds network addresses of said plurality of packet communication apparatuses as to a network address of said second packet communication apparatus, receives the network address of said second packet communication apparatus as a response of said address management module, and decides on the basis of the received network address to which of said first network and said second network said second packet communication apparatus is connected.
 11. A packet communication method according to claim 9, wherein said first communication protocol is an IPv4 and said second communication protocol is an IPv6.
 12. A packet communication method according to claim 11, wherein said first packet communication apparatus sends a DNS packet for inquiry of the network address of said second packet communication apparatus to said address management module holding the network addresses of said plurality of packet communication apparatuses, receives a DNS response packet containing the network address of said second packet communication apparatus from said address managing apparatus and decides on the basis of the received network address to which of said first network and said second network said second packet communication apparatus is connected.
 13. A packet communication method according to claim 11, wherein said first packet communication apparatus sends an NS packet for inquiry of a hardware address of said second packet communication apparatus to said second packet communication apparatus, receives an SA packet containing the hardware address of said second packet communication apparatus from said second packet communication apparatus, and generates an MAC header of the packet to be sent to said second packet communication apparatus on the basis of the received hardware address.
 14. A packet communication system for a network system comprising a first network corresponding to a first communication protocol, a second network corresponding to a second communication protocol and a plurality of packet communication apparatuses connected to at least one of said first network and said second network, comprising: an address translation table for storing correspondences between first type network addresses compatible with said first communication protocol and second type network addresses compatible with said second communication protocol for said plurality of packet communication apparatuses, respectively; and protocol conversion means for a packet transferred for communication between an application program compatible with the first communication protocol and said second network, wherein said address translation means performs address translation between said first type network address and said second type network address for a send destination address contained in said packet on the basis of said address translation table, to thereby perform header conversion between said first communication protocol and said second communication protocol for said packet.
 15. A packet communication system according to claim 14, wherein said first communication protocol is an IPv4 and said second communication protocol is an IPv6.
 16. A packet communication system for a network system comprising a first network corresponding to a first communication protocol, a second network corresponding to a second communication protocol and a plurality of packet communication apparatuses connected to at least one of said first network and said second network, comprising: means for deciding to which of said first network and said second network a packet-send-destination communication apparatus is connected; and means for generating on the basis of result of said decision a packet of a communication protocol compatible with a network to which said packet-send-destination communication apparatus is connected, to thereby send said generated packet to a network to which the own packet communication apparatus is connected.
 17. A packet communication system according to claim 16, an address translation table for storing correspondences between first type network addresses compatible with said first communication protocol and second type network addresses compatible with said second communication protocol for said plurality of packet communication apparatuses, respectively; and means for inquiring an address management module holding network addresses of said plurality of packet communication apparatuses as to a network address of said second packet communication apparatus; and means for storing the network address received as a response of said address management module in said address translation table, wherein said decision means decides on the basis of the received network address to which of said first network and said second network said second packet communication apparatus is connected.
 18. A packet communication system according to claim 16, wherein said first communication protocol is an IPv4 and said second communication protocol is an IPv6.
 19. A recording medium storing a packet communication program for a network system comprising a first network corresponding to a first communication protocol, a second network corresponding to a second communication protocol and a plurality of packet communication apparatuses connected to at least one of said first network and said second network, wherein in a first information processing apparatus which is connected to said second network and in which an application program compatible with said first communication protocol operates, correspondence between first type network addresses compatible with said first communication protocol and second type network addresses compatible with said second communication protocol are stored for said plurality of packet communication apparatuses, respectively, and wherein for a packet transferred for communication between said application program and said second network, address translation between said first type network address and said second type network address is performed for a send destination address contained in the packet on the basis of the correspondence of said network addresses, to thereby perform header conversion between said first communication protocol and said second communication protocol for said packet.
 20. A recording medium storing a packet communication program for a network system comprising a first network corresponding to a first communication protocol, a second network corresponding to a second communication protocol and a plurality of packet communication apparatuses connected to at least one of said first network and said second network, wherein when a first packet communication apparatus among said plurality of packet communication apparatuses sends a packet, decision is made as to which of said first network and said second network a second packet communication apparatus which is a send destination of said packet is connected to, and a packet of a relevant communication protocol is generated from the first mentioned packet on the basis of the result of said decision, said generated packet being sent out to the network to which said first packet communication apparatus is connected. 